package com.carboy.launch.widgets;

import com.carboy.launch.BaseApplication;

import android.app.Application;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

public class JwdButton extends Button {

	public JwdButton(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
	}

	public JwdButton(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public JwdButton(Context context) {
		super(context);
	}
	
	@Override
	public boolean performClick() {
		BaseApplication.playClickVoice(getContext());
		return super.performClick();
	}
	
	@Override
	public boolean performLongClick() {
		BaseApplication.playClickVoice(getContext());
		return super.performLongClick();
	}
}
